home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / graphics / gnuplot / makefile.ztc < prev    next >
Makefile  |  1993-05-11  |  3KB  |  119 lines

  1. # make file for Zortech C++ 3.x
  2.  
  3. # where to place gnuplot.gih helpfile
  4. HELPFILE = gnuplot.gih
  5.  
  6. # -c  means don't link
  7. # -f  means in-line 8087
  8. # -mx means X memory model 
  9. # -o+space means optimize for space, -o means optimize for speed
  10. # -p means turn off autoprototyping (pre-ANSI codes)
  11. # Jm means relax type checking
  12. # one can disable command-line history by comment out -DREADLINE
  13.  
  14. CFLAGS=-c -mx -o+space    -Jm -DREADLINE
  15. LINK=blinkx
  16. #LINK=386link
  17. CC=ztc
  18.  
  19.  
  20. OBJ1 =  bitmap.obj command.obj contour.obj eval.obj graphics.obj graph3d.obj
  21. OBJ2 =    help.obj internal.obj misc.obj parse.obj plot.obj readline.obj
  22. OBJ3 =    scanner.obj setshow.obj specfun.obj standard.obj term.obj util.obj
  23. OBJ4 =    version.obj gnubin.obj binary.obj
  24.  
  25. OBJS =    $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4)
  26.  
  27. CSOURCE5 = term\aed.trm term\cgi.trm term\dumb.trm term\dxy.trm \
  28.     term\eepic.trm term\epson.trm term\fig.trm term\hp26.trm \
  29.     term\hp2648.trm term\hpgl.trm term\hpljii.trm 
  30. CSOURCE6 = term\impcodes.h term\imagen.trm term\object.h \
  31.     term\iris4d.trm term\kyo.trm term\latex.trm term\fg.trm
  32. CSOURCE7 = term\post.trm term\qms.trm term\regis.trm term\sun.trm \
  33.     term\t410x.trm term\tek.trm term\unixpc.trm term\unixplot.trm \
  34.     term\v384.trm term\x11.trm
  35. CSOURCE8 = contour.c specfun.c gnubin.c binary.c
  36.  
  37. all: gnuplot.exe $(HELPFILE) demo\bf_test.exe
  38.  
  39. gnuplot.exe: $(OBJS)
  40.              $(LINK) @linkopt.ztc
  41. #@linkopt.pha
  42.  
  43. # default rules
  44.  
  45. .c.obj:
  46.     $(CC) $(CFLAGS) $<
  47.  
  48. bitmap.obj: bitmap.c bitmap.h plot.h
  49.  
  50. command.obj: command.c plot.h setshow.h help.h
  51.     $(CC) $(CFLAGS) command.c
  52.  
  53. contour.obj: contour.c plot.h
  54.  
  55. eval.obj: eval.c plot.h
  56.  
  57. graphics.obj: graphics.c plot.h setshow.h
  58.  
  59. graph3d.obj: graphics.c plot.h setshow.h
  60.  
  61. help.obj: help.c plot.h help.h
  62.  
  63. internal.obj: internal.c plot.h
  64.  
  65. misc.obj: misc.c plot.h setshow.h help.h
  66.  
  67. parse.obj: parse.c plot.h
  68.     $(CC) $(CFLAGS) parse.c
  69.  
  70. plot.obj: plot.c plot.h setshow.h
  71.     $(CC) $(CFLAGS) plot.c
  72.  
  73. readline.obj: readline.c
  74.  
  75. scanner.obj: scanner.c plot.h
  76.  
  77. setshow.obj: setshow.c plot.h setshow.h
  78.  
  79. specfun.obj: specfun.c
  80.  
  81. standard.obj: standard.c plot.h
  82.  
  83. # the CSOURCE? dependencies are not up to date (but who cares)
  84. term.obj: term.c term.h plot.h setshow.c bitmap.h $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
  85.     $(CC) $(CFLAGS) $(TERMFLAGS) -Iterm term.c
  86.  
  87. util.obj: util.c plot.h
  88.  
  89. version.obj: version.c
  90.  
  91. $(HELPFILE): doc2gih.exe docs\gnuplot.doc
  92.     doc2gih docs\gnuplot.doc $(HELPFILE)
  93.  
  94. # convert gnuplot.doc to gnuplot.gih
  95. doc2gih.exe: docs\doc2gih.c
  96.     $(CC) -c -ml docs\doc2gih.c
  97.     $(LINK) $*
  98.  
  99. demo\bf_test.exe: bf_test.c binary.obj
  100.     $(CC) -mx -odemo\bf_test.exe bf_test.c binary.obj
  101.  
  102. # clean target - remove all temp files, but leave executable intact
  103. # needed when changing configuration (model or overlaying)
  104.  
  105. clean:
  106.     del *.obj
  107.     del gnuplot.map
  108.     del doc2gih.exe
  109.  
  110. # realclean target - remove all files created by the makefile
  111.  
  112. realclean: clean
  113.     del gnuplot.exe
  114.     del gnuplot.gih
  115.     del demo\bf_test.exe
  116.     del demo\binary1
  117.     del demo\binary2
  118.     del demo\binary3
  119.